#pragma once
#include "UltimatePhysX3Precompiled.h"
#include "UltimatePhysX3.h"
#include <OgreRoot.h>
 

class UltimatePhysX3;
//global variable
UltimatePhysX3* myPlugin;
 
//-----------------------------------------------------------------------
extern "C" void _UltimatePhysX3Export dllStartPlugin(void)
{
  // Create plugin
  myPlugin = new UltimatePhysX3();
 
  // Register
  Ogre::Root::getSingleton().installPlugin(myPlugin);
}
extern "C" void _UltimatePhysX3Export dllStopPlugin(void)
{
  Ogre::Root::getSingleton().uninstallPlugin(myPlugin);
  delete myPlugin;
}